<template>
  <nav class="navbar">
    <div class="navbar-container">
      <h1 class="navbar-logo">我的技术博客</h1>
      <ul class="navbar-links">
        <li><a href="#" class="active">首页</a></li>
        <li><a href="#">关于</a></li>
        <li><a href="#">归档</a></li>
        <li><a href="#">联系</a></li>
      </ul>
    </div>
  </nav>
</template>

<script setup>
// 导航栏逻辑（如果需要）
</script>

<style scoped>
.navbar {
  background-color: #1a73e8;
  padding: 10px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-logo {
  font-size: 1.5rem;
  color: white;
  margin: 0;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar-links li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar-links li a:hover {
  color: #cce7ff;
}

.navbar-links li a.active {
  font-weight: bold;
  color: #cce7ff;
}
</style>